package com.num2.form.lkw;

import java.text.SimpleDateFormat;
import java.util.Date;


public class Deposit_Money {
	private String user_name;//进账用户账户
	private int user_id;//用户ID
	private String transaction_date;//存款日期
	private String income_expend;//存款金额
	private String remark;//存款方式
	private int balance;//余额
	
	public Deposit_Money() {
		super();
	}
	
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String userName) {
		user_name = userName;
	}

	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int userId) {
		user_id = userId;
	}
	public String getTransaction_date() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		transaction_date = sdf.format(new Date());
		return transaction_date;
	}
	public void setTransaction_date(String transactionDate) {
		transaction_date = transactionDate;
	}
	
	public String getIncome_expend() {
		return "+"+String.valueOf(income_expend);
	}

	public void setIncome_expend(String incomeExpend) {
		income_expend = incomeExpend;
	}

	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getBalance() {
		balance = balance + Integer.parseInt(income_expend);
		return balance;
	}

	public void setBalance(int balance) {
		this.balance = balance;
	}
	
}
